package com.ys.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ys.dao.UserMapper;
import com.ys.entity.User;
import com.ys.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Author 1628994918qq.com
 * @Date 2023/3/27 9:59
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean insertUser(List<User> userList) {
        int i = userMapper.insertUser(userList);
        if (i>0){
            return true;
        }
        return false;
    }
}
